//
//  Spade.h
//  PVB
//
//  Created by huang kun on 5/31/10.
//  Copyright 2010 UESTC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"


@protocol SpadeDelegate <NSObject>

//铲除植物
- (BOOL) removePlantByPosition:(CGPoint)position;

//转换坐标到种植植物的固定点上
- (CGPoint) convertToGridPosition:(CGPoint)position;

@end


@interface Spade : CCNode <CCTargetedTouchDelegate>{
	//铲子类
	
	//CCSprite *bg;
	CCSprite *spade;
	
	id <SpadeDelegate> delegate;	//委托铲除植物
}

@property(nonatomic ,assign) id <SpadeDelegate> delegate;

- (id) init;

@end
